import axios from './axios'

export const getTopics = ()=>{
    return axios.get('/topics')
}
export const getTopic = (id)=>{
    return axios.get('/topic/'+id)
}
export const createTopic = (data)=>{
    return axios.post('/topics',data)
}
export const getCollect = (loginname)=>{
    return axios.get('/topic_collect/'+loginname)
}
